﻿<%@ Page Title="View Message" Language="C#" MasterPageFile="~/Alumini/ALM-Menu.master" EnableViewStateMac="false" AutoEventWireup="true" CodeFile="ALM-ViewMessage.aspx.cs" Inherits="ViewMessage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headSubMaster" Runat="Server">
<link rel="stylesheet" type="text/css" href="css/communication.css" />
<style>
#ctl00_ContentPlaceHolder1_divOldMessage{}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_SubMaster" Runat="Server">
<div id="top-btn"><!-- top tab-->
<label><a href="ALM-InboxMessageList.aspx">Back to Inbox</a></label>
<label>
    <asp:Button ID="btnDelete" runat="server" Text="Delete" 
        onclick="btnDelete_Click" /></label>
<label>
    <asp:Button ID="btnReply" runat="server" Text="Reply" 
        onclick="btnReply_Click" /></label>
<label><asp:Button ID="btnForward" runat="server" Text="Forward" 
        onclick="btnForward_Click" /></label>
<label>
    <asp:Button ID="btnPrevious" runat="server" onclick="btnPrevious_Click"  /></label>
<label>    <asp:Button ID="btnNext" runat="server" onclick="btnNext_Click"  /></label>
</div><!-- top tab close-->

<div id="page"><!-- page content-->
<div class="left-btn">
<p><input type="button" value="compose" onclick="page('ALM-Compose.aspx');" /></p>
<p  id="pInbox" runat="server"><input type="button" value="inbox" onclick="page('ALm-InboxMessageList.aspx');" /></p>
<p id="pSent" runat="server"><input type="button" value="sent"  onclick="page('ALM-SentMessages.aspx');"/></p>
    
</div>


<div class="right">
<div class="mail-detail" style="display:none">
<div class="mail-from">
<p><label>Subject:</label><label><%=Subject %> </label></p>
<p><label>from:</label> <label><%=From %></label></p>
<p><label>to:</label> <label><%=To %></label></p>
<p><label>cc:</label> <label><%=Cc %></label></p>
<p  style="clear:both;display:none"><label>Attachment:</label> <label style="float:left">
  <asp:ListView ID="gvNewFiles" runat="server" ItemPlaceholderID="itemPlaceholder" onitemcommand="gvNewFiles_ItemCommand" >
    <LayoutTemplate>
<div runat="server" id="itemPlaceholder" />

</LayoutTemplate>
    <ItemTemplate>
<asp:LinkButton ToolTip='<%# String.Format("Download {0}",Eval("FileName")) %>' runat="server" CssClass="margin"
ID="lbtnFiles" Text='<%#Eval("FileName") %>' CommandArgument='<%#Eval("FileName") %>' ForeColor="Blue"
CommandName="downloadFile"></asp:LinkButton>
<br />
    </ItemTemplate> 
    <%--    <AlternatingItemTemplate>
<asp:LinkButton ToolTip='<%# String.Format("Download {0}",Eval("FileName")) %>' runat="server" CssClass="margin"
ID="lbtnFiles" Text='<%#Eval("FileName") %>' CommandArgument='<%#Eval("FileName") %>'
CommandName="downloadFile"></asp:LinkButton>
<br />
    </AlternatingItemTemplate>--%>
    <EmptyDataTemplate>
<span>No Attachments.</span>
</EmptyDataTemplate>
</asp:ListView></label></p>
    <p style="clear:both;"><label>Attachment: </label><label style="font-size:15px;">
        <asp:LinkButton ID="lnkOpenReviewer" runat="server" 
            onclick="lnkOpenReviewer_Click">Open With Reviewer</asp:LinkButton></label></p>
<p style="clear:both"><label></label><label></label></p>
</div>

</div>
<div id="divOldMessage" runat="server"></div>
<%--<div class="mail-msg">
<%=body %>
<h1>hi</h1>
<p>thank for writing mail to us. We will work on it.</p>
<label>thank</label>
<label>Gaurav Goel</label>
</div>--%>
</div>

</div><!-- content close-->

</asp:Content>

